package org.cglib.example;

public class Teacher {

    public Teacher() {
        System.out.println("Teacher类的无参构造执行了----this的hashCode是:"+System.identityHashCode(this)
        +"---this.getClass:"+this.getClass().getName() );
    }
    //Teacher类的无参构造执行了----this的hashCode是:1567581361---
    // this.getClass:org.cglib.example.Teacher$$EnhancerByCGLIB$$c035fe31


    public String teach(String courseName) {
        System.out.println("    老师授课中,课程名:"+courseName  +" this is "+this);
        return "teach方法返回值";
    }


    public String cooking(String order) {
        System.out.println("    老师做菜中:"+order  +" this is "+this);
        return "cooking方法返回值";
    }
}
